
#ifndef __MP3_H
#define __MP3_H

typedef enum
{
	MainService,
	MP3Service,
	serviceMAX
} service_define_type;


typedef enum
{
	mp3List,
	mp3Play,
	mp3Stop,
	mp3Resume,
	mp3Pause,
	mp3ExitService,
	mp3ServiceMAX
} service_mp3_type;

typedef            void     (*service_function)(void);


typedef struct _main_service_type
{
	 byte service;
	 char* service_string;
	service_function run;
	byte cmd;	
} main_service_type;

// #define CODE_AREA_BUFF_MAX		32

typedef struct _sub_service_type
{
	 byte service;
	// char service_string[CODE_AREA_BUFF_MAX];
	char* service_string;
	service_function run;
	byte cmd;	
} sub_service_type;

void uart0_rx_event(char data);


void service_mp3(void);

void service_mp3_list(void);
void service_mp3_play(void);
void service_mp3_stop(void);
void service_mp3_pause(void);
void service_mp3_resume(void);
void service_mp3_exit(void);


#endif

